Return to doc.sitecore.com

  Svn Server Side Installation
Prev Next

The instructions below describe how to setup Subversion on the server. For a complete guide on Version Control with Subversion please visit the following site:

http://svnbook.red-bean.com/en/1.1/

All Subversion source code and binary files are available on the official site:

http://subversion.tigris.org/

Run the SVN installation utility. Install SVN in, say, C:\Program Files\Subverson folder. The bin folder of this installation contains tools required for creating and maintaining the repository. The following example assumes that you have SVN (the Subversion command-line client) and svnadmin (the administrative tool) ready to go.

We will use ra_svn module. Run svn --version and make sure that ra_svn module is available. Without this module, the client cannot access the repository.

Subversion stores all versioned data in a central repository. Create a new empty directory (for example D:\svnpublic) for repository:

svnadmin create D:\svnpublic

This command creates a new directory D:\svnpublic which contains a Subversion repository. Go to D:\svnpublic and make sure that new files and directories are added.

Make sure that this directory resides on a local disk, not on a shared one.

Configuring SVN server

Edit the configuration file d:\svnpublic\conf\svnserve.conf:

[general]
anon-access = none
auth-access = write
password-db = passwd

where password is a file containing user names and passwords. Here we exclude anonymous access and permit write access for authenticated users. Every developer should have own password in this file. Take a look at the example below:

[users]
harry = harryssecret
sally = sallyssecret

Run the svnserve daemon which will serve the client request for repository.

svnserve –d –r D:\svnpublic

You would probably want this program to run at the server start up, so it is better to put it to the Windows Startup folder or use the “Scheduled Tasks” functionality.


Prev Next